
#ifndef LABELPANEL_H
#define LABELPANEL_H

#include <BGroupBox>
#include <BLabel>
#include <BComboBox>
#include <BSpinBox>
#include <BButton>
#include <BLineEdit>

#include "AlignWidget.h"

class LabelPanel : public BWidget
{
public:
	LabelPanel(BWidget* parent = 0);

protected:
	void slotAssetChanged();

	void slotFormChanged(BObject* object, const BValue& value);
	void slotAlignButtonChecked();
	void slotAlignChoosed(BObject* object, const BValue& value);
	void slotAlignWidgetFocused(BObject* object, const BValue& value);
	void slotTextEdited(BObject* object, const BValue& value);
	void slotChooseImageFile();
	void slotImageSizeEdited(BObject* object, const BValue& value);

private:
	BLabel*			_label;

	BComboBox*		_formComboBox;
	BButton*		_alignButton;
	BLineEdit*			_textEdit;
	BButton*		_imageButton;
	BSpinBox*		_imageWidthSpinBox;
	BSpinBox*		_imageHeightSpinBox;

	AlignWidget*	_alignWidget;

};

#endif
